package com.manage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.manage.dao.RoleMapper;
import com.manage.model.Role;
@Service
public class RoleServiceImpl implements RoleService{
	@Autowired
	private RoleMapper roleMapper;
	public List<Role> listAllRoles() {
		List<Role> role = roleMapper.listAllRoles();
		return role;
	}
	
	public void saveRole(Role role){
		roleMapper.saveRole(role);
	}
}
